const path = require("path");
const { defineConfig } = require("@vue/cli-service");
module.exports = defineConfig({
  transpileDependencies: true,

  pluginOptions: {
    "style-resources-loader": {
      preProcessor: "less",
      patterns: [
        // 配置哪些文件需要自动导入
        path.join(__dirname, "./src/styles/variables.less"),
      ],
    },
  },

  configureWebpack: {
    externals: {
      // 用来去除打包时候的常用不变模块
      qc: "QC",
    },
    devServer: {
      // disableHostCheck: true
      allowedHosts: ["www.corho.com"],
    },
  },
});
